package com.jzsk.variable.center.zhengxin.controller;

import com.jzsk.variable.center.domain.dto.jar.ExportJarReqDTO;
import com.jzsk.variable.center.service.jar.JarService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

@RestController
@Api(tags = "Jar包管理")
@RequestMapping("/jar")
public class JarController {

    @Resource
    JarService jarService;

    @PostMapping("/export")
    @ApiOperation(value = "导出jar包", notes = "导出jar包")
    public void exportJar(@RequestBody ExportJarReqDTO exportJarReqDTO, HttpServletResponse response) {
        jarService.exportJar(exportJarReqDTO, response);
    }

}
